import {Button} from 'antd'
import api from './api'
import '../../less/panel.less'
class Panel extends React.Component {
	constructor(props) {
		super(props);
	}
	componentDidMount() {
	}
	componentWillUnmount() {
	}
	databaseInit(){
		console.log("click init");
		api.databaseInit({}).then((res)=>{
			console.log(res);
		}).catch((err)=>{
			console.log(err);
		})
	}
	render() {
		const{words}=this.props;
		return(
			<div className="panel-wrap">
				<Button type="primary" onClick={this.databaseInit}>重置数据库</Button>
				<p>GGGGGGGGGG</p>
				<p>MMMMMMMM</p>
				<div>
					{words}
				</div>
			</div>
		);
	}
}
export default Panel
